﻿using System;
using System.Text;
using System.Drawing;
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;

public static partial class glDRIVE
{
    /*
    函数 gl.hhbg
    约化一般实矩阵为上H阵
    参数 a: a[n][n]一般实矩阵。返回上H矩阵。
    参数 n: 
    */

    public static string drive_hhbg()
    {
        int i, j;
        double[,] a = new double[5, 5]{
            {1.0,6.0,-3.0,-1.0,7.0},
            {8.0,-15.0,18.0,5.0,4.0},
            {-2.0,11.0,9.0,15.0,20.0},
            {-13.0,2.0,21.0,30.0,-6.0},
            {17.0,22.0,-5.0,3.0,6.0}
        };

        string rs = "";
        rs += gl.html_table("原矩阵 A", a);

        gl.hhbg(a, 5);

        rs += gl.html_table("上H矩阵 A", a);
        return rs;
    }
}